Black-white-grey game in javascript/css/html/svg