Added animation to tick and fixed game logic