Applied Intuition interview question

Implementing a classic game on a 2D grid