Fixed ArrayIndexOutOfBoundException in Logic.class

when pressing x or y = 100