Refactor login
Refactor task loading
Refactor Game logic