Implemented object hierarchy

and user input handling in the player update code