Issue #009: Tentatively fixes issue with setting and deleting invitations; the problem with the database not being updated was related to the accept function switching to game.php before any changes could be made.