Implemented logic independence with framerate. Reorganization of the classes.