Max's submission of Infinite Grid Game | CodeChef