Implemented basic pattern system

PATTERNS WERK OMG :OOO