use a grid and square class to represent the game
wrote out a-star algorithm in comments