Changed nextInt(int n) from using & to using %