Fix whitespace.
Use else-if
Make party and pause integer values.
Fix up code formatting and add meaningful value limits.