performance improvements


continuing with small performance improvements.

Putting functions and avoiding unnecessary repeated code. All this took a few kbytes? I did not expect xD

Get Terror of the time limit