Ad
  • Custom User Avatar

    You only have 0-4 cases. What if the array is 5 or greater? You need a default case for that at the end of your switch (replace it with case 4).