Edited turn-based implementation