Fixed mayn more bugs. Added turn-based mode