changed to coffeescript and built fundementals of engine