Moved logic functions out of class and minor amenments to patterns
Functions can now take multiple paramaters
Added initial unit tests
Added more unit tests
Added actual positions for some fields.