Fixed jumping issue by calculating angle with atan2