Started to work on using a clock to control game ticks