method to select left or right
Changed button disposition in index.html