Added animation to player spaceship. Code refactoring.