press space to move the square i wish scratch had return functions.... >:(
found this cool formula on google