added a fillEntry function, and a fillNextSpot helper function for the upcoming solvePuzzle function