added frame logic to constructor and to acrobot unit test.