added restriction to player movement