replaced arraylist with array in game class