updated to include player movement