he knew that his plan had been compromised and that api would eventually find out what he was doing , but he felt as if he had the upper hand as long as they did not know the full plan of what he was doing .