Move getCompChoice outside main loop