Fixed formatting, added rudimentary castling