Added collision to tank. Refactored code to include the polygon functions in the Entity file.