Fixed numerous compilation errors. Working on score logic.