Separated main into new file, fleshed out menu loop

Meant to include main.cpp last commit, apparently didn't happen.