added basic moves, collision detection, top3cellswin function