Couldnt sleep :coffee:

Comments, cleanup, refactoring, helper functions and partial gamelogic.