Fixed issue where the program would crash if the starting position was outside the grid.