added tower create prevention when dragging view

added tower create prevention when dragging view and changed some
function prototypes.