I decided not to leave the bug and i forgot to precise that the cells coordinates aren't in three seperate variables but in a single tuple.