This is my custom solution to the CodinGame challenge Skynet Finale - Level 1: