Separating scene logic