Simulation of the 'The hungry birds problem' written in C++