I solved it, and it was mostly issued with permissions in both the directory for the python file and for .xinitrc. Used chmod -R to solve it. Thank you for the suggestions.
I have made a file .xinitrc in the users home directory. In the file I've put
exec python3 /srv/Game/main.py
But the python script doesn't run when launching x with
startx
What am I doing wrong? I thoght this was how you used .xinitrc
.xinitrc doesn't run script when using startx