fixed a bug in rooks moves