Update Game.java

made for loops based off of the size of the arrays being accessed making the program more dynamic in case I wanted to add size.