Sleeping patterns, and changing them back to normal?

Over the last few weeks, I have been off college, and have been relaxing, but my sleep pattern went off, and spent a small while going sleep at 5-7am and waking at 2-5pm I gradually have been going sleep earlier.

But recently I have been waking up earlier, and earlier, naturally.
About a week ago I woke up at 11:30 when I went to sleep at 4, (I had planned on getting up at 1:30 that's less sleep than I was aiming for, but my body decided it's time to wake up, sooner

I made an error, and went to sleep later than I would like, Minecraft just came out and I was playing that all night and lost track of the time after two when I looked at the time next it was 5:30, so I planned to get up at 1 so I have 8 hours of sleep, but I woke up at 7:30,

why does this keep happening is it my mind and body tying to get it's sleeping pattern back to normal, or is it something else causing it

Try sleeping at 10 or 11pm.

Most sleeping problems are probably caused by stress, depression, anxiety, nervousness and worry as well as being too keyed up.

Sleeping pills can give you bad side effects such as headaches and drowsiness during the day so you are better off without them.

To sleep better just relax and switch off, if you can.

If you are having trouble switching off at bedtime some light exercise (for example, push ups or sit ups) at bedtime often helps you to relax, unwind and switch off and that often improves your sleep. Strenuous exercise at bedtime is likely to ruin your sleep.

Common OTC sleep aids include Chamomile tea, 5-HTP, Melatonin and Valerian Root.

Sleep enhancing foods include warm milk, turkey, cherries, oatmeal, bananas, wine and others as in a web search for "sleep enhancing foods".

You can see further tips in a web search for "how to fall asleep and stay asleep".