Added StateFlags to hold castling and enpassant information