It is permissible for a Muslim to entertain himself providing that this type of entertainment doesn’t include forbidden things.
For example, any games with music, nudity, excessive violence or claiming to follow another religion; all of this is forbidden.
Besides, spending a lot of time on permissible games is not recommended as it destroys the heart and makes it connected to other than Allah.