added debug, change playstate to playerstates