fixed wrong tiles being drawn