fixed bug in Rook class,