Implemented a real game loop and target fps option