Refactor to check invalid play with if the position is not empty