added game  logic to metro ui