Change the anchor point of sprites to (0,0)

All changes reflect change in anchor point.
Fix bouncing mechanism, and fix AI code