fix: IOOB when leaving game area to the right

Index Out of Bounds when leaving game area through the right side fixed
(misplaced brackets)