Made player an object