updates to layouts

put media query to aspect-ratio; updated order of piece movement on a
reaction; limited a reaction to at most 4 pieces at a time