Created better algorithm for player snake pathing