Learning To Control Multi- Dimensional Autonomous Agents Using Hebbian Learning