partially fixed a swap glitch when swapping the same gem multiple times in succession. fixed array out of bounds errors on grid.direction and move function