added a check before glutInitWindow that somehow got rid of segfault
minor part1 changes
added part2 files, keybinding not working