tweaked code, added player