added pawn promotion and castling