If you were a resident of X and didn't take action to establish residency in Y, then you are still a resident of X because you were physically present more than 6 months. If you had earnings in Y then you will still have to file state returns with both states.