make app a module
correct typo on line 18
make arguments on lines 29 and 30 tuples
add missing _ on line 37
intialize again variable
rafactor xrange section from devine_winner()
adjust battles variable, remove -1