TODO if in end game give extra weight for king to move forward introduce some endgame knowledge such as rooks on the same file or same row add