Some game algorithms for junior developer