solving the games and contests posted to codingame.