Fix login handling
Remove unnecessary return and define statements
Restructuring, add movePlayer (currently broken)