adding the first portion of the game logic

adding the colour changing logic