bug writing tile animations