fixed problem where clicking on a tile could result in input state being in an invalid condition