made a * a little faster and made non-astar movement better