Fixed hit detection so that even if the element is not on a 'real' square it will still work

rounded out the hit detection so that elements will still run into walls
and things