Implemented a working turn based system.