Improved player direction detection