Character navigation for java based game using A* search algorithm