added new file moves.py and check if king is checked before moving