Added IPlayer Interface, refactor of the engine class and amin class