Switched Integer.getInt() to Intger.parseInt(), fixing bug.