changed Direction.RIGHT to 1 because it was causing problems with coalescing