Created a helper for player movement