Refactored code
Trying to modify the Ticks per second engine to work correctly without a
fixed fps.