#7 added state to player object