added getValidLocations method to Rook class
added a linear-time isMoveValid method
checked in framework for extracting the move validation of rooks and bishops