Integrate castling and e.p. rights into board array; bugfix for EditPosition