Started working on a victory checker system

This code is unfinished, see the next commit