added spawnterminal method to create and map termnials TODO: dynamic rules for terminals