modified isValid to make sure that the spawn location is empty