Chess: Position scoring function