Adds takeAction() to Agent.