renamed player to agent
basic automatic agent movement