Fixed error where clicking outside of board bounds caused ArrayIndexOutOfBounds