It goes in a few different directions. Initially the players goal is to escape but as you lose more and more sanity from compliance Stockholm syndrome takes effect. Or getting yourself accidently murdered, accidents, actually escaping etc. There's a lot of different endings/routes.