Ruby: Fully implemented a (rather ugly) safe_pawns() method to return number of safe pawns