Cleaned up animation code, fixed animation transition flicker bug, fixed bug where projectiles would still exist after a player left a room.