Added direction and changed quit button