Bug fix, improved pseudo-FEN parser

AI now knows how to promote pawn, and now wants to. Pseudo-FEN parser
now can be set to determine who is to move and whether castling is
available or not.