Prevent player from trying to open already opened positions.

This avoids cheating to increase the number of opened positions by opening already opened positions.
Minor fix on position range check