started work on the logic loop and the fps manager