refactor isSpaceValid to add conditional where not letting add rover to a position that is already taken