Managed the timming of the application
Set the frame limit to 30 frames per second.
Also limited the ticks per second to 30.