Referee mostly implemented, broke compile though :(