How do I pass an object from javascript to PHP?
You are using a POST, it is the same way you, use 

$new_ships = $_POST['new_ships'];
$destroyed_ships = $_POST['destroyed_ships'];


Read more on php POST.