changed variables to char
win_check functions and drop mainloop
win_check rewrite
win_check should work now
split into multiple files