Formatting fix
Improved AI a little - now it turns smoothly
Tried to fix leaks, but a little in vain