corrected logic.php to include $boxes div