Improved rotation input handling for players and added screen boundary checking.