check for null element in game array before splicing