Updated the game loop,  added fps counter