refactoring and timing improvement

Added parameters to ReflectionPattern
Removed unnecessary draws in main loop so that speed increased a lot