All 3 versions are wokring but there is a wierd bug tthat occures on the last move some of the time