added states

but  trouble with the text and tile stuff