Hey! Sorry for the late reply, I've been caught up in exams, but got a little breather now. I'm glad you liked my game! To answer your question, I basically have a 2d array of bool values whose indexes are the coin slot postions. Each time you insert a coin, it will check diagonally, horizontally, and vertically, through for loops, if there are coins of same color and if the count is atleast 4 or not; if so, then that color wins! I hope that helped! 😁