Updated how program takes user input

Uses a better method, but a bug has popped up. Will fix soon.