Added logic to not move tiles to non empty slots