Removed some stuff, tried to fix endturn, but apparently broke something