making AStar generic for each player