Fixed all the errors. The program compiles but has a segfault when pressing start