A jump-point-search algorithm for grid based games in C#