Added mouse support for A* movement.