Implemented simple Gameloop.