Array Game Code In Java