Gives the wrong result. You don't need to create the list twice; only once. This will create the true ray list; then check if the last element of the ray is a empty space or not. If it is a space the assistant survives. After you determine whether he survives or not you need to add the assistants symbols to the list appropriately. This is the issue that the writer of that reddit thread was having. See my response in his thread for the solution.