Fixed the max value code of movement.c

Now that all the max functions have been rewritten and fleshed out into
math.c, three lines have been condensed into one line, and an array is
passed as the argument. The corresponding method is in math.c.