added drawEntities routine to camera and moved some collisions detection algorithms to utils