Fixed sprite rotation and added a pause function for debugging purposes.