fixed endgame crash

added inventory script to player and item database to scene