making turn controller asynchronous
adding karma and jasmine for testing