added arraylists to avoid null pointers. pushes to queue.