Create agent.cpp

First agent, moves forward and avoids collisions 5 times.