Wave particle in a 1-D box, tracking and statistics