game functionality done.