Is this a complex sentence
When I was bored I still wanted to check my phone but I realized that I shouldn't.
If not how could I make this one