Implemented controls module in game loop