Decoupling engine from XNA