Fixed filebuffer bug and added some more states to tetris