Refactored Controller class.

Now there is an actor class that represents physical objects and the
player controller class, that represents the player controller.