I dont like to have nested ifs, check if there is another way to do this. First of all, check your possible states ^^