added renderer, finished logic implementation first
fixed errors so program can compile