reversi and reverse_mini updated for exact line numbers