Changed from scanner for user input to bufferedReader.