cleanup code - limit player movement