simplified a lot of code and swapped out the loops to .map instead so that vandalen is done without loops.