Implementation of tick() method

Implemented the tick method, tick now goes through autonomous then moves on to the game