attempt at simple karuko solving