still trying to rotate sprites, added collision detection function