Fix horizontal and vertical shooting, improve util