Update main.cpp

Mostly rewritten to allow simultaneous keypresses (downright, downleft...).