added dead and place ship function.