removed unnecessary precision when determining playerDirection