In class SlotCollection, remove the fields slot1, slot2, slot3 and slot4 and replace them by an array of slots. Modify the rest of the program to work using this array.
There is no requirement to use loops in Task 1, and it suffices to replace each reference to slot1 by slots[0], and each reference to slot2 by slots[1], etc. (assuming your array is named "slots").
Note: In the Game constructor, you will find the line "int numStones = ui.readStones();" which asks the user to enter how many stones. In Task 1, you can ignore this and assume that the number of stones (and thus the size of your array) is always 4.
Submit to PLATE to receive your marks and feedback for this task.