Implemented three in a row but not the best way. Needs to be improved a lot