Changed player movement system, code cleanup