Some attempt at a strategy js game