Finnaly finished all logic. Game is working!

Signed-off-by: Indomian <blade39@yandex.ru>