Using Math.atan2 not Math.atan