Cleaned up some of the code for grid interactivity. Gameplay is next.