Added defences(add with mouseclick) and changed collision detection from checking every corner to just checking in a straight line, function doesn't work 100% correctly yet though