Refactored code, there was too much logic in the app.py
Merge branch 'master' of https://github.com/Cosmin-Parvulescu/BLoto649