Homeworks 4 and 5 implementing the game of hex