Reset class/function and main loop kinda done