fixing bug with tapping outside of the grid