Update main.cpp

Complete rewrite of Boggle, Speed and code overhaul