added scoring, core loop is built