This is my way of going through different states in GDscript. Is my code bad?