Click The turret at the top right corner to select a turret. Then click where you want to place it.
This is a work in progress but I thought I might share it before I'm completely finished. (Also the code is complicated and took me like a day to learn it all so go to see inside to see what I mean.)