Moved Engine functions to GameManager

Created a class to handle all engine related functions in the game.