restrictions on player movement (fixed #28)