completed coloring the lines in the game logic