Path planning on a cuboid using genetic algorithms