simplify prev_menu operation

Ruby's modulo can handle negative operands.
http://ruby-doc.org/core-2.1.2/Numeric.html#method-i-modulo