Fixed some stuff on the engine.

Modified/encapsulated the whole logic of the player, cam and gamelogic.