Fixed a bug on rook move generation and added king move generation.