Remove some semicolons and fixed the bug in select moves