Computational nonlinear dynamics and optimal control/anti-control of a rocking block