Dont know what this is

Copied the code. Shall work on an improved version which is easy to code
and understand